package com.ynding.spring.idea.ddd.core.model.wechat.factory;

import com.ynding.spring.idea.ddd.core.model.wechat.domain.WechatAccount;
import com.ynding.spring.idea.ddd.core.model.wechat.entity.Balance;

/**
 * <p> </p>
 *
 * @author ynding
 * @version 2022/4/26
 **/
public class BalanceFactory {

    /**
     * 获取账户余额
     * @param wechatAccount 微信账号
     * @return
     */
    public static Balance obtain(WechatAccount wechatAccount){
        // TODO
        return wechatAccount.getWallet().getBalance();
    }
}
